package com.gitee.hermer.engine.jars.dependent.zkclient.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.dependent.dsm.domain.EngineProperties;

@PropertySource(EngineConstant.ENGINE_CONFIG_PROPERTIES_CLASS_PATH)
@Component
public class ZkClientProperties extends EngineProperties{

	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_ZKCLIENT_ADDRESS)
	private String resAddress;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_ZKCLIENT_USERNAME)
	private String resUsername;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_ZKCLIENT_PASSWORD)
	private String resPassowrd;
	
	
	public void setResAddress(String resAddress) {
		this.resAddress = resAddress;
	}
	public void setResPassowrd(String resPassowrd) {
		this.resPassowrd = resPassowrd;
	}
	public void setResUsername(String resUsername) {
		this.resUsername = resUsername;
	}
	public String getResAddress() {
		return resAddress;
	}
	public String getResPassowrd() {
		return resPassowrd;
	}
	public String getResUsername() {
		return resUsername;
	}

}